<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"            
        xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="template.xhtml">
	
	<ui:define name="head">
       
	</ui:define>
 
	<ui:define name="content">

        <h:form enctype="multipart/form-data">
                     
            <c:forEach id="idFoto" items="#{fotoController.fotos}" var="foto">
                   
                   <h:outputText value="#{foto.nome}" />
                   <h:outputText value="#{foto.caminho}" />
                   <br/>
            </c:forEach>              
            <br/>
            
         <p:fileUpload fileUploadListener="#{fotoController.handleFileUpload}"  
                    mode="advanced"  
                    update="messages"   
                    multiple="true"  
                    sizeLimit="10000"   
                    allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>              
                 
            
        </h:form>                      
         
                                
        
            
            
        </ui:define>
</ui:composition>
